﻿// --------------------------------------------------------------------------------------------------------------------
// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.
// <Credits>
// Peter Torr
// http://blogs.msdn.com/b/ptorr/archive/2010/10/12/procrastination-ftw-lazylistbox-should-improve-your-scrolling-performance-and-responsiveness.aspx
// </Credits>
// --------------------------------------------------------------------------------------------------------------------
namespace WP7Contrib.View.Controls
{
    using System;

    /// <summary>
  /// Event args for the <see cref="LazyListBox.ScrollingStateChanged"/> event
  /// </summary>
  public class ScrollingStateChangedEventArgs : EventArgs
  {
    /// <summary>
    /// Old scrolling value
    /// </summary>
    public bool OldValue { get; private set; }

    /// <summary>
    /// New scrolling value
    /// </summary>
    public bool NewValue { get; private set; }

    /// <summary>
    /// Create a new instance of the event args
    /// </summary>
    /// <param name="oldValue">Old scrolling value</param>
    /// <param name="newValue">New scrolling value</param>
    public ScrollingStateChangedEventArgs(bool oldValue, bool newValue)
    {
      OldValue = oldValue;
      NewValue = newValue;
    }
  }
}
